#if !defined(__DEAMON_PROCESS_H__)
#define __DEAMON_PROCESS_H__

#include <unistd.h>
#include <sys/types.h>

typedef struct
{
    pid_t pid;
    char *exec;
    char *argv[3];
} DaemonProcess;

int daemon_process_init(DaemonProcess *dp, const char *part);

int daemon_process_start(DaemonProcess *dp);

int daemon_process_stop(DaemonProcess *dp);

int daemon_process_free(DaemonProcess *dp);

#endif // __DEAMON_PROCESS_H__
